home *** CD-ROM | disk | FTP | other *** search
- // tdate8.cpp:
-
- #include <iostream.h>
- #include "date8.h"
-
- main()
- {
- Date today, d2;
- cout << "Today's date is " << today << endl;
- cout << "Enter another date: ";
- cin >> d2;
- cout << "today - d2 = " << today - d2 << endl;
- cout << "d2 - today = " << d2 - today << endl;
- return 0;
- }
-
- /* OUTPUT
-
- Today's date is 12/12/1992
- Enter another date: 1/1/1970
- today - d2 = 11/11/22
- d2 - today = -11/-11/-22
- */
-
-